// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.

namespace Stride.Core.Diagnostics;

/// <summary>
/// Arguments of the <see cref="Logger.MessageLogged"/> event.
/// </summary>
public class MessageLoggedEventArgs : EventArgs
{
    /// <summary>
    /// Initializes a new instance of the <see cref="MessageLoggedEventArgs"/> class with a log message.
    /// </summary>
    /// <param name="message">The message that has been logged.</param>
    public MessageLoggedEventArgs(ILogMessage message)
    {
        Message = message;
    }

    /// <summary>
    /// Gets the message that has been logged.
    /// </summary>
    public ILogMessage Message { get; }
}
